import 'package:flutter/material.dart';
import 'package:go_router/go_router.dart';

class TransactionsScreen extends StatelessWidget {
  const TransactionsScreen({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        leading: IconButton(
          icon: const Icon(Icons.arrow_back),
          onPressed: () => context.pop(),
        ),
        title: const Text('交易记录'),
      ),
      body: ListView.builder(
        itemCount: 10, // 示例数据
        itemBuilder: (context, index) {
          return ListTile(
            leading: const Icon(Icons.payment),
            title: Text('交易 ${index + 1}'),
            subtitle: Text('2024-${(index % 12) + 1}-${(index % 28) + 1}'),
            trailing: Text('¥${(index + 1) * 10}.00'),
          );
        },
      ),
    );
  }
}
